package com.ansatsing.factory.Abstract;

public class AbstractFactory {
	private KingdomFactory kingdomFactory;
	public AbstractFactory(KingdomFactory kingdomFactory) {
		this.kingdomFactory = kingdomFactory;
	}
	public void createKingdom() {
		System.out.println(kingdomFactory.createArmy().getDescription());
		System.out.println(kingdomFactory.createCastle().getDescription());
		System.out.println(kingdomFactory.createKing().getDescription());
	}
}
